package com.aner.tester.generator.data;

import com.aner.tester.object.ValueObject;
import com.aner.tester.resolver.FieldResolver;

import java.lang.reflect.Field;

/**
 * field generator
 *
 * @author aner
 * @version 1.0
 * @date 2020/12/10 12:24
 */
public class FieldGenerator {

    public Object generate(Field field, int levelCount) {
        ValueObject valueObject = FieldResolver.resolve(field, levelCount);
        return ValueGenerator.generate(valueObject);
    }
}
